<html>
  <head>
    <title>test</title>
    <meta charset="utf-8">
  </head>

  <body>
    <h1>Testing...</h1>

    <script>
      (() => {
        'use strict';
        let id = 0;

        Editor.Ipc.sendToMain('foobar:say-hello', 'foo', 'bar', 'foobar', (err,info) => {
          Editor.log('reply ' + id++);

          for ( var i = 0; i < 100; ++i ) {
            Editor.Ipc.sendToMain('foobar:say-hello', 'foo', 'bar', 'foobar', (err,info) => {
              Editor.log('reply ' + id++);

              for ( var i = 0; i < 100; ++i ) {
                Editor.Ipc.sendToMain('foobar:say-hello', 'foo', 'bar', 'foobar', (err,info) => {
                  Editor.log('reply 02 ' + id++);
                });
              }
            });
          }
        });
      })();
    </script>
  </body>
</html>
